package com.waa.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.waa.gulimall.common.to.mq.SeckilOrderTo;
import com.waa.gulimall.common.utils.PageUtils;
import com.waa.gulimall.order.entity.OrderEntity;
import com.waa.gulimall.order.vo.OrderConfirmVo;
import com.waa.gulimall.order.vo.OrderSubmitVo;
import com.waa.gulimall.order.vo.SubmitOrderResponseVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author waa
 * @email 2460335742@qq.com
 * @date 2022-02-22 10:11:13
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //给我们的订单需要页返回需要的数据
    OrderConfirmVo confirm() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo submitOrder(OrderSubmitVo orderSubmitVo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    void createSeckillOrder(SeckilOrderTo seckilOrderTo);
}

